const routes = [
  {
    path: '/customer',
    name: 'customer',
    redirect: '/customer/list/checked',
    meta: {
      name: '客户' ,
      icon: '',
      pickIcon: '',
      order: 1,
      crumbs: ['客户']
    },
    children: [
        {
        path: 'list',
        name: 'customerList',
        meta: {
          crumbs: ['客户','客户列表'],
          name: '客户列表',
        },
        children: [
          {
            path: 'checked',
            name: 'customerChecked',
            meta: {
              name: '我查看的',
              href: '/customer/list/checked',
              crumbs: ['客户','客户列表','我查看的'],
            },
            component: () => import('@/view/page/Customer/CustomerList/Checked.vue')
          },
          {
            path: 'iMResponsible',
            name: 'customerImResponsible',
            meta: {
              name: '我负责的',
              href: '/customer/list/iMResponsible',
              crumbs: ['客户','客户列表','我负责的'],
            },
            component: () => import('@/view/page/Customer/CustomerList/ImResponsible.vue')
          },
          {
            path: 'public',
            name: 'customerPublic',
            meta: {
              name: '公海池',
              href: '/customer/list/public',
              crumbs: ['客户','客户列表','公海池'],
            },
            component: () => import('@/view/page/Customer/CustomerList/Public.vue')
          },
        ]
      },
      {
        path: 'settings',
        name: 'customerSettings',
        meta: {
          crumbs: ['客户','客户设置'],
          name: '客户设置',
          collapse: true
        },
        children: [
          {
            path: 'label',
            name: 'customerlabel',
            meta: {
              name: '客户标签',
              href: '/customer/settings/label',
              crumbs: ['客户','客户设置','客户标签'],
            },
            component: () => import('@/view/page/Customer/CustomerSettings/CustomerLabel.vue')
          }
        ]
      }
    ]
  },

]

export default routes;